
package com.be.beadmin.quality.repository;

import com.be.beadmin.quality.entity.ComplaintFileInfo;
import com.be.beadmin.quality.entity.ComplaintFileInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author twl
* @date 2023-09-21
**/
public interface ComplaintFileInfoRepository extends JpaRepository<ComplaintFileInfo, String>, JpaSpecificationExecutor<ComplaintFileInfo> {

    ComplaintFileInfo findComplaintFileInfoByIdAndDelete(String id, Integer delete);

    ComplaintFileInfo findComplaintFileInfoById(String id);

    List<ComplaintFileInfo> findComplaintFileInfosByComplaintIdAndAndState(String complaintId,Integer state);

    List<ComplaintFileInfo> findComplaintFileInfosByComplaintIdAndDelete(String complaintId,Integer delete);



}